import random
for i in range(1,10):
    for j in range(1,i+1):
        print(j,'*',i,'=',i*j,end=' ')
    print()


num = random.randint(1,100)
# print(num)
key = 'y'
count = 0
while key == 'y':
    name = input('请输入随机数字')
    if eval(name) == num :
        print('输入正确')
        key = 'n'
        print('用户猜了',count,'次')
        break
    elif eval(name) > num :
        print('猜大了')
    elif eval(name) < num :
        print('猜小了')
    count+=1



# 测试被引入后输出变量或函数执行
age = 19